package com.ciei.dpagm.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ciei.dpagm.common.service.BaseService;
import com.ciei.dpagm.entity.FileType;
import com.ciei.dpagm.mapper.FileTypeMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author pp
 * @date 2020/9/1
 **/
@Service
public class FileTypeService extends BaseService<FileTypeMapper, FileType> {
    /**
     *
     *
     * @param id id属性值数组
     * @return 满足条件的所有记录
     */
    public List<FileType> findByIds(Integer[] id) {

        QueryWrapper<FileType> wrapper = new QueryWrapper<>();
        if (id != null && id.length>0) {
            wrapper.in("id", id);
        }
        return list(wrapper);
    }
}
